import request from "@/utils/request";

// 查询线索成本设置列表
export function listBizXiansuoChengben(query) {
  return request({
    url: "/biz/bizXiansuoChengben/list",
    method: "get",
    params: query,
  });
}

// 查询线索成本设置详细
export function getBizXiansuoChengben(id) {
  return request({
    url: "/biz/bizXiansuoChengben/" + id,
    method: "get",
  });
}

// 新增线索成本设置
export function addBizXiansuoChengben(data) {
  return request({
    url: "/biz/bizXiansuoChengben",
    method: "post",
    data: data,
  });
}

// 修改线索成本设置
export function updateBizXiansuoChengben(data) {
  return request({
    url: "/biz/bizXiansuoChengben",
    method: "put",
    data: data,
  });
}

// 删除线索成本设置
export function delBizXiansuoChengben(id) {
  return request({
    url: "/biz/bizXiansuoChengben/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizXiansuoChengben/findMaxSort",
    method: "get",
  });
}
// 导出线索成本设置
export function exportBizXiansuoChengben(query) {
  return request({
    url: "/biz/bizXiansuoChengben/export",
    method: "get",
    params: query,
  });
}
